/**
 * Created by lipeng on 16/12/3.
 */

var test1 = function (req,res) {
    res.render('test/test', {
        username: '李鹏',
        title:'测试界面',
        courses:[
            'php',
            'node.js',
            'python'
        ]
    });
};
var index = function (req,res) {
  res.render('test/index',{
      username:'李四',
      password:'123456'
  });
};

module.exports = {
    'info':function (req,res) {
        res.render('test/info',{
            hobby:'吃饭',
            abcd:['php','node','python'],
            courses:[
                'php',
                'node.js',
                'python'
            ]
        });
    },
    'test1':test1,
    'index':index
};